/*
 * Flowable CMMN REST API
 * # flowable / flowəb(ə)l /    - a compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.  - a lightning fast, tried and tested BPMN 2 process engine written in Java. It is Apache 2.0 licensed open source, with a committed community.  - can run embedded in a Java application, or as a service on a server, a cluster, and in the cloud. It integrates perfectly with Spring. With a rich Java and REST API, it is the ideal engine for orchestrating human or system activities.
 *
 * OpenAPI spec version: v1
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.ibm.risk.irmp.workflow.client.flowable.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;

/**
 * HistoricMilestoneInstanceQueryRequest
 */

public class HistoricMilestoneInstanceQueryRequest {
  @JsonProperty("start")
  private Integer start = null;

  @JsonProperty("size")
  private Integer size = null;

  @JsonProperty("sort")
  private String sort = null;

  @JsonProperty("order")
  private String order = null;

  @JsonProperty("id")
  private String id = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("caseInstanceId")
  private String caseInstanceId = null;

  @JsonProperty("caseDefinitionId")
  private String caseDefinitionId = null;

  @JsonProperty("reachedBefore")
  private OffsetDateTime reachedBefore = null;

  @JsonProperty("reachedAfter")
  private OffsetDateTime reachedAfter = null;

  public HistoricMilestoneInstanceQueryRequest start(Integer start) {
    this.start = start;
    return this;
  }

   /**
   * Get start
   * @return start
  **/
  @ApiModelProperty(value = "")
  public Integer getStart() {
    return start;
  }

  public void setStart(Integer start) {
    this.start = start;
  }

  public HistoricMilestoneInstanceQueryRequest size(Integer size) {
    this.size = size;
    return this;
  }

   /**
   * Get size
   * @return size
  **/
  @ApiModelProperty(value = "")
  public Integer getSize() {
    return size;
  }

  public void setSize(Integer size) {
    this.size = size;
  }

  public HistoricMilestoneInstanceQueryRequest sort(String sort) {
    this.sort = sort;
    return this;
  }

   /**
   * Get sort
   * @return sort
  **/
  @ApiModelProperty(value = "")
  public String getSort() {
    return sort;
  }

  public void setSort(String sort) {
    this.sort = sort;
  }

  public HistoricMilestoneInstanceQueryRequest order(String order) {
    this.order = order;
    return this;
  }

   /**
   * Get order
   * @return order
  **/
  @ApiModelProperty(value = "")
  public String getOrder() {
    return order;
  }

  public void setOrder(String order) {
    this.order = order;
  }

  public HistoricMilestoneInstanceQueryRequest id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(value = "")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public HistoricMilestoneInstanceQueryRequest name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @ApiModelProperty(value = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public HistoricMilestoneInstanceQueryRequest caseInstanceId(String caseInstanceId) {
    this.caseInstanceId = caseInstanceId;
    return this;
  }

   /**
   * Get caseInstanceId
   * @return caseInstanceId
  **/
  @ApiModelProperty(value = "")
  public String getCaseInstanceId() {
    return caseInstanceId;
  }

  public void setCaseInstanceId(String caseInstanceId) {
    this.caseInstanceId = caseInstanceId;
  }

  public HistoricMilestoneInstanceQueryRequest caseDefinitionId(String caseDefinitionId) {
    this.caseDefinitionId = caseDefinitionId;
    return this;
  }

   /**
   * Get caseDefinitionId
   * @return caseDefinitionId
  **/
  @ApiModelProperty(value = "")
  public String getCaseDefinitionId() {
    return caseDefinitionId;
  }

  public void setCaseDefinitionId(String caseDefinitionId) {
    this.caseDefinitionId = caseDefinitionId;
  }

  public HistoricMilestoneInstanceQueryRequest reachedBefore(OffsetDateTime reachedBefore) {
    this.reachedBefore = reachedBefore;
    return this;
  }

   /**
   * Get reachedBefore
   * @return reachedBefore
  **/
  @ApiModelProperty(value = "")
  public OffsetDateTime getReachedBefore() {
    return reachedBefore;
  }

  public void setReachedBefore(OffsetDateTime reachedBefore) {
    this.reachedBefore = reachedBefore;
  }

  public HistoricMilestoneInstanceQueryRequest reachedAfter(OffsetDateTime reachedAfter) {
    this.reachedAfter = reachedAfter;
    return this;
  }

   /**
   * Get reachedAfter
   * @return reachedAfter
  **/
  @ApiModelProperty(value = "")
  public OffsetDateTime getReachedAfter() {
    return reachedAfter;
  }

  public void setReachedAfter(OffsetDateTime reachedAfter) {
    this.reachedAfter = reachedAfter;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    HistoricMilestoneInstanceQueryRequest historicMilestoneInstanceQueryRequest = (HistoricMilestoneInstanceQueryRequest) o;
    return Objects.equals(this.start, historicMilestoneInstanceQueryRequest.start) &&
        Objects.equals(this.size, historicMilestoneInstanceQueryRequest.size) &&
        Objects.equals(this.sort, historicMilestoneInstanceQueryRequest.sort) &&
        Objects.equals(this.order, historicMilestoneInstanceQueryRequest.order) &&
        Objects.equals(this.id, historicMilestoneInstanceQueryRequest.id) &&
        Objects.equals(this.name, historicMilestoneInstanceQueryRequest.name) &&
        Objects.equals(this.caseInstanceId, historicMilestoneInstanceQueryRequest.caseInstanceId) &&
        Objects.equals(this.caseDefinitionId, historicMilestoneInstanceQueryRequest.caseDefinitionId) &&
        Objects.equals(this.reachedBefore, historicMilestoneInstanceQueryRequest.reachedBefore) &&
        Objects.equals(this.reachedAfter, historicMilestoneInstanceQueryRequest.reachedAfter);
  }

  @Override
  public int hashCode() {
    return Objects.hash(start, size, sort, order, id, name, caseInstanceId, caseDefinitionId, reachedBefore, reachedAfter);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class HistoricMilestoneInstanceQueryRequest {\n");

    sb.append("    start: ").append(toIndentedString(start)).append("\n");
    sb.append("    size: ").append(toIndentedString(size)).append("\n");
    sb.append("    sort: ").append(toIndentedString(sort)).append("\n");
    sb.append("    order: ").append(toIndentedString(order)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    caseInstanceId: ").append(toIndentedString(caseInstanceId)).append("\n");
    sb.append("    caseDefinitionId: ").append(toIndentedString(caseDefinitionId)).append("\n");
    sb.append("    reachedBefore: ").append(toIndentedString(reachedBefore)).append("\n");
    sb.append("    reachedAfter: ").append(toIndentedString(reachedAfter)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
